import { defineStore } from "pinia";
import { ref } from "vue";

type Gui = null | string | number;

export const useGui = defineStore("gui", () => {
  const GUI = ref<Gui>(null);
  function addGUI(ID: Gui) {
    console.log("添加", ID)
    GUI.value = ID;
  }
  function removeGUI() {
    console.log("remove")
    GUI.value = null;
  }

  return { GUI, addGUI, removeGUI };
});
